﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LGE;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Audio;

namespace Stealth
{
    public abstract class Enemy : GameObject
    {
        protected SpriteSheetState state;

        public Enemy(PlayScreen ps, Vector2 position, Texture2D sprite)
            : base(ps, sprite)
        {
            state = new SpriteSheetState(this);
            this.position = position;
        }

        public override void Update(GameTime gameTime)
        {
            position += speed;
            state.Update(gameTime);
        }
    }
}
